package com.tsingteng.cosfun.ui.cosfun.imodel;

import com.tsingteng.cosfun.bean.BaseBackBean;
import com.tsingteng.cosfun.bean.BaseDataBean;
import com.tsingteng.cosfun.bean.CommBean;
import com.tsingteng.cosfun.bean.PullBlackBean;
import com.tsingteng.cosfun.callback.RxObserver;
import com.tsingteng.cosfun.http.RxSchedulers;
import com.tsingteng.cosfun.mvp.module.BaseModel;

import retrofit2.Callback;

public class CommModel extends BaseModel implements ICommModel {


    @Override
    public void getOpusComm(int isTop,String workId, String c, String deviceId, String parentCommentId, String userId, String commentMsg, Callback<BaseBackBean> callback) {
        doRxRequest().getComm(isTop,workId, c, deviceId, parentCommentId, userId, commentMsg).enqueue(callback);
    }

    @Override
    public void getOpusCommList(String userId, String c, String workId, String page_no, String page_size, String deviceId, Callback<BaseDataBean<CommBean>> callback) {
        doRxRequest().getCommList(userId, c, workId, page_no, page_size, deviceId).enqueue(callback);
    }

    @Override
    public void getOpusCommLike(String workId, String userId, String commId, String type, Callback<BaseDataBean<String>> callback) {
        doRxRequest().getCommLike(workId, userId, commId, type).enqueue(callback);
    }

    @Override
    public void commDel(String commID, Callback<BaseDataBean<String>> callback) {
        doRxRequest().getCommDel(commID).enqueue(callback);

    }
    @Override
    public void getReadPullBlackStateInfo(int user_id, Callback<PullBlackBean> workCallback) {
        doRxRequest().readPullBlackBlack(user_id + "").enqueue(workCallback);
    }

    @Override
    public void getCancelPullBlackInfo(long user_id, Callback<PullBlackBean> workCallback) {
        doRxRequest().cancelPullBlack(user_id + "").enqueue(workCallback);
    }
}
